<?php 
$this->breadcrumbs=array(
	Yii::t('yii','Register')
);

if(Yii::app()->user->hasFlash('model')) {
	Yii::app()->user->flash('model', array('<div class="confirmation">', '</div>'));
	return;
}

$JFV=Yii::app()->jformvalidate;

$JFV->setOptions(array(
		'errorElement'=> 'div',
		'errorClass' => 'invalid',
        ));



echo $JFV->form();


?>
<h2>Регистрация</h2>

<?php $this->widget('textedit.components.TextEditor', array('id'=>'register')); ?>

<div class="yiiForm">

<?php echo Html::errorSummary($user); ?>

<div class="simple">
<?php echo Html::activeLabel($user,'username'); ?>
<?php echo $JFV->activeTextField($user,'username'); ?>
</div>
<div class="simple">
<?php echo Html::activeLabel($user,'password'); ?>
<?php echo $JFV->activePasswordField($user,'password'); ?>
</div>
<div class="simple">
<?php echo Html::activeLabel($user,'password_repeat'); ?>
<?php echo $JFV->activePasswordField($user,'password_repeat'); ?>
</div>
<div class="simple">
<?php echo Html::activeLabel($user,'email'); ?>
<?php echo$JFV->activeTextField($user,'email'); ?>
<p class="hint">Този email няма да бъде видим за никой друг освен за вас.</p>
</div>

<div class="action">
<?php echo Html::submitButton('Регистрация'); ?>
</div>
</div><!-- yiiForm -->
<?php echo $JFV->endForm(); ?>

